package com.shop.loan.model;

import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.jpa.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Setter
@Getter
@Entity
@Table(name = "s_order_device_info")
@Erupt(
        name = "下单设备信息"
)
public class LoanOrderDeviceInfo extends BaseModel {


        @Column(name = "order_id")
        private Long orderId;

        private Long userId;

        @EruptField(
                views = @View(title = "设备品牌"),
                edit = @Edit(title = "设备品牌")
        )
        private String deviceBrand;

        @EruptField(
                views = @View(title = "设备id"),
                edit = @Edit(title = "设备id")
        )
        private String deviceId;

        @EruptField(
                views = @View(title = "设备型号"),
                edit = @Edit(title = "设备型号")
        )
        private String deviceModel;

        @EruptField(
                views = @View(title = "设备类型"),
                edit = @Edit(title = "设备类型")
        )
        private String deviceType;

        @EruptField(
                views = @View(title = "设备方向"),
                edit = @Edit(title = "设备方向")
        )
        //竖屏 portrait、横屏 landscape
        private String deviceOrientation;

        @EruptField(
                views = @View(title = "设备像素比"),
                edit = @Edit(title = "设备像素比")
        )
        private String devicePixelRatio;

        @EruptField(
                views = @View(title = "操作系统及版本"),
                edit = @Edit(title = "操作系统及版本")
        )
        private String system;

        @EruptField(
                views = @View(title = "客户端平台"),
                edit = @Edit(title = "客户端平台")
        )
        private String platform;

        @EruptField(
                views = @View(title = "系统名称"),
                edit = @Edit(title = "系统名称")
        )
        private String osName;

        @EruptField(
                views = @View(title = "操作系统版本"),
                edit = @Edit(title = "操作系统版本")
        )
        private String osVersion;

        @EruptField(
                views = @View(title = "操作系统语言"),
                edit = @Edit(title = "操作系统语言")
        )
        private String osLanguage;

        @EruptField(
                views = @View(title = "操作系统主题"),
                edit = @Edit(title = "操作系统主题")
        )
        private String osTheme;

        @EruptField(
                views = @View(title = "rom名称"),
                edit = @Edit(title = "rom名称")
        )
        private String romName;

        @EruptField(
                views = @View(title = "rom版本号"),
                edit = @Edit(title = "rom版本号")
        )
        private String romVersion;


}
